<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: cv::cuda::TargetArchs Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="navpath" id="nav-path">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d1/d1a/namespacecv_1_1cuda.html">cuda</a></li><li class="navelem"><a class="el" href="../../d9/dee/classcv_1_1cuda_1_1TargetArchs.html">TargetArchs</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="../../de/dcc/classcv_1_1cuda_1_1TargetArchs-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::cuda::TargetArchs Class Reference<div class="ingroups"><a class="el" href="../../d1/d1e/group__cuda.html">CUDA-accelerated Computer Vision</a> » <a class="el" href="../../d7/d05/group__cudacore.html">Core part</a> » <a class="el" href="../../d8/d40/group__cudacore__init.html">Initialization and Information</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<p>Class providing a set of static methods to check what NVIDIA* card architecture the CUDA module was built for.  
 <a href="../../d9/dee/classcv_1_1cuda_1_1TargetArchs.html#details">More...</a></p>
<p><code>#include &lt;opencv2/core/cuda.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a228153530879a3330507db98984b8eff"><td align="right" class="memItemLeft" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dee/classcv_1_1cuda_1_1TargetArchs.html#a228153530879a3330507db98984b8eff">builtWith</a> (<a class="el" href="../../d8/d40/group__cudacore__init.html#ga776cf8e0301b18e19be4782754274fe0">FeatureSet</a> feature_set)</td></tr>
<tr class="memdesc:a228153530879a3330507db98984b8eff"><td class="mdescLeft"> </td><td class="mdescRight">The following method checks whether the module was built with the support of the given feature:  <a href="#a228153530879a3330507db98984b8eff">More...</a><br/></td></tr>
<tr class="separator:a228153530879a3330507db98984b8eff"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a92318c6f6c8c00014a2b96bfec73b807"><td align="right" class="memItemLeft" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dee/classcv_1_1cuda_1_1TargetArchs.html#a92318c6f6c8c00014a2b96bfec73b807">has</a> (int major, int minor)</td></tr>
<tr class="memdesc:a92318c6f6c8c00014a2b96bfec73b807"><td class="mdescLeft"> </td><td class="mdescRight">There is a set of methods to check whether the module contains intermediate (PTX) or binary CUDA code for the given architecture(s):  <a href="#a92318c6f6c8c00014a2b96bfec73b807">More...</a><br/></td></tr>
<tr class="separator:a92318c6f6c8c00014a2b96bfec73b807"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acd8bdf9a176c8cef258e705fa334cc00"><td align="right" class="memItemLeft" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dee/classcv_1_1cuda_1_1TargetArchs.html#acd8bdf9a176c8cef258e705fa334cc00">hasBin</a> (int major, int minor)</td></tr>
<tr class="separator:acd8bdf9a176c8cef258e705fa334cc00"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abfd5b40917f200ac637b6f091e288871"><td align="right" class="memItemLeft" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dee/classcv_1_1cuda_1_1TargetArchs.html#abfd5b40917f200ac637b6f091e288871">hasEqualOrGreater</a> (int major, int minor)</td></tr>
<tr class="separator:abfd5b40917f200ac637b6f091e288871"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a20a9357cc148b2c7935552884b7bd3e7"><td align="right" class="memItemLeft" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dee/classcv_1_1cuda_1_1TargetArchs.html#a20a9357cc148b2c7935552884b7bd3e7">hasEqualOrGreaterBin</a> (int major, int minor)</td></tr>
<tr class="separator:a20a9357cc148b2c7935552884b7bd3e7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad50f7b7f5b3f47a3be6cd24ded8c0f16"><td align="right" class="memItemLeft" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dee/classcv_1_1cuda_1_1TargetArchs.html#ad50f7b7f5b3f47a3be6cd24ded8c0f16">hasEqualOrGreaterPtx</a> (int major, int minor)</td></tr>
<tr class="separator:ad50f7b7f5b3f47a3be6cd24ded8c0f16"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae38dbffa90484e0adaa17d08c6a344c2"><td align="right" class="memItemLeft" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dee/classcv_1_1cuda_1_1TargetArchs.html#ae38dbffa90484e0adaa17d08c6a344c2">hasEqualOrLessPtx</a> (int major, int minor)</td></tr>
<tr class="separator:ae38dbffa90484e0adaa17d08c6a344c2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab6cdd49244468febdde5d550ad160a2e"><td align="right" class="memItemLeft" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dee/classcv_1_1cuda_1_1TargetArchs.html#ab6cdd49244468febdde5d550ad160a2e">hasPtx</a> (int major, int minor)</td></tr>
<tr class="separator:ab6cdd49244468febdde5d550ad160a2e"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class providing a set of static methods to check what NVIDIA* card architecture the CUDA module was built for. </p>
<p>According to the CUDA C Programming Guide Version 3.2: "PTX code produced for some specific compute
capability can always be compiled to binary code of greater or equal compute capability". </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a228153530879a3330507db98984b8eff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a228153530879a3330507db98984b8eff">◆ </a></span>builtWith()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool cv::cuda::TargetArchs::builtWith </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d8/d40/group__cudacore__init.html#ga776cf8e0301b18e19be4782754274fe0">FeatureSet</a> </td>
          <td class="paramname"><em>feature_set</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>The following method checks whether the module was built with the support of the given feature: </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">feature_set</td><td>Features to be checked. See :ocvcuda::FeatureSet. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a92318c6f6c8c00014a2b96bfec73b807"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a92318c6f6c8c00014a2b96bfec73b807">◆ </a></span>has()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool cv::cuda::TargetArchs::has </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>major</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>minor</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.cuda.TargetArchs_has(</td><td class="paramname">major, minor</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>There is a set of methods to check whether the module contains intermediate (PTX) or binary CUDA code for the given architecture(s): </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">major</td><td>Major compute capability version. </td></tr>
    <tr><td class="paramname">minor</td><td>Minor compute capability version. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="acd8bdf9a176c8cef258e705fa334cc00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd8bdf9a176c8cef258e705fa334cc00">◆ </a></span>hasBin()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool cv::cuda::TargetArchs::hasBin </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>major</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>minor</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.cuda.TargetArchs_hasBin(</td><td class="paramname">major, minor</td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="abfd5b40917f200ac637b6f091e288871"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abfd5b40917f200ac637b6f091e288871">◆ </a></span>hasEqualOrGreater()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool cv::cuda::TargetArchs::hasEqualOrGreater </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>major</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>minor</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.cuda.TargetArchs_hasEqualOrGreater(</td><td class="paramname">major, minor</td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="a20a9357cc148b2c7935552884b7bd3e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20a9357cc148b2c7935552884b7bd3e7">◆ </a></span>hasEqualOrGreaterBin()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool cv::cuda::TargetArchs::hasEqualOrGreaterBin </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>major</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>minor</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.cuda.TargetArchs_hasEqualOrGreaterBin(</td><td class="paramname">major, minor</td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="ad50f7b7f5b3f47a3be6cd24ded8c0f16"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad50f7b7f5b3f47a3be6cd24ded8c0f16">◆ </a></span>hasEqualOrGreaterPtx()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool cv::cuda::TargetArchs::hasEqualOrGreaterPtx </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>major</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>minor</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.cuda.TargetArchs_hasEqualOrGreaterPtx(</td><td class="paramname">major, minor</td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="ae38dbffa90484e0adaa17d08c6a344c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae38dbffa90484e0adaa17d08c6a344c2">◆ </a></span>hasEqualOrLessPtx()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool cv::cuda::TargetArchs::hasEqualOrLessPtx </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>major</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>minor</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.cuda.TargetArchs_hasEqualOrLessPtx(</td><td class="paramname">major, minor</td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="ab6cdd49244468febdde5d550ad160a2e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6cdd49244468febdde5d550ad160a2e">◆ </a></span>hasPtx()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool cv::cuda::TargetArchs::hasPtx </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>major</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>minor</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.cuda.TargetArchs_hasPtx(</td><td class="paramname">major, minor</td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/core/<a class="el" href="../../d8/dd1/modules_2core_2include_2opencv2_2core_2cuda_8hpp.html">cuda.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:44 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
